import request from '@/utils/request'

// 获取列表
export function example1GetList(pd) {
  return request({
    url: '/sys/example1/getList',
    method: 'get',
    params: pd
  })
}
// 获取条数
export function example1GetCount(pd) {
  return request({
    url: '/sys/example1/getCount',
    method: 'get',
    params: pd
  })
}

// 新增
export function example1Add(data) {
  return request({
    url: '/sys/example1',
    method: 'post',
    data: data
  })
}

// 修改
export function example1Edit(pd) {
  return request({
    url: '/sys/example1',
    method: 'put',
    data: pd
  })
}

// 删除参数配置
export function example1Del(id) {
  return request({
    url: '/sys/example1/id/' + id,
    method: 'delete'
  })
}